#!/bin/bash

# echo '查看物理CPU的个数'
# cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l

# echo '查看CPU是几核'
# cat /proc/cpuinfo | grep "cores" | uniq

# echo '查看逻辑CPU的个数'
# cat /proc/cpuinfo | grep "processor" | wc -l

# echo '查看CPU的主频'
# cat /proc/cpuinfo | grep MHz | uniq

echo '查看cpu逻辑核数和型号'
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c

echo '查看CPU的位数'
getconf LONG_BIT

echo '查看操作系统和版本'
cat /etc/os-release

echo '查看操作系统和版本'
head -n 1 /etc/issue

echo '查看服务器型号'
dmidecode |grep -A5 'System Information'

echo '查看磁盘'
lsblk

echo '查看磁盘'
df -Th
